package com.originit.product.dao

import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringRunner

@SpringBootTest
@RunWith(SpringRunner::class)
class ProductInfoRepositoryTest {

    @Autowired
    lateinit var repository:ProductInfoRepository;

    @Test
    fun findByStatus() {
        Assert.assertTrue(repository.findByProductStatus(0).size > 0)
    }
}